package cn.texous.util.commons.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * insert description here
 *
 * @author leven
 * @since 2019/7/13 19:45
 */
@Getter
@AllArgsConstructor
public enum ResultCode implements Code {
    /***/
    SUCCESS(200, "成功"),
    /***/
    FAIL(400, "失败"),

    /***/
    UNAUTHORIZED(401, "未认证"),
    /***/
    INSUFFICIENT_PERMISSIONS(403, "权限不足"),
    /***/
    NOT_FOUND(404, "接口不存在"),
    /***/
    PARAM_FAIL(405, "参数错误"),
    /***/
    INTERNAL_SERVER_ERROR(500, "服务器内部错误"),
    ;

    private int code;
    private String message;

}
